package com.googlecode.imanager.client.value.el;

import com.googlecode.imanager.client.value.ValueType;

/**
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public class Concat extends CoupleOperation {

    private static final long serialVersionUID = 1L;

    public Concat(Expression leftExpression, Expression rightExpression) {
        super(leftExpression, rightExpression);
    }

    @Override
    public ValueType getValueType() {
        return ValueType.TEXT;
    }

    @Override
    public String getValue() {
        return convertToString(leftExpression) + convertToString(rightExpression);
    }

}
